{#
 This Source Code Form is subject to the terms of the Mozilla Public
 License, v. 2.0. If a copy of the MPL was not distributed with this
 file, You can obtain one at https://mozilla.org/MPL/2.0/.
#}

{% extends 'newsletter/base.html' %}

{# "noindex" pages should not have the canonical or hreflang tags: bug 1442331 #}
{% block canonical_urls %}<meta name="robots" content="noindex,follow">{% endblock %}

{% block page_title %}{{ ftl('newsletters-newsletter-confirm') }}{% endblock page_title %}

{% block page_css %}
  {{ css_bundle('newsletter-confirm') }}
{% endblock %}

{% block content %}
<main>
  <div class="mzp-l-content mzp-t-content-md">
    {% if token_error %}
      <div class="mzp-c-notification-bar mzp-t-error">
        {{ ftl('newsletters-the-supplied-link-has-expired-v2') }}
      </div>
    {% elif generic_error %}
      <div class="mzp-c-notification-bar mzp-t-error">
        {{ ftl('newsletters-something-is-amiss-with') }}
      </div>
    {% else %}
      <h1>{{ ftl('newsletters-thanks-for-subscribing') }}</h1>
      <p>{{ ftl('newsletters-your-newsletter-subscription') }}</p>
      <p>{{ ftl('newsletters-please-be-sure-to-add-our-v2') }}</p>
    {% endif %}
  </div>
</main>
{% endblock %}
